package com.sq.service.impl;


import com.sq.dao.ProductMapper;
import com.sq.pojo.Product;
import com.sq.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2020-06-02
 */
@Service
public class ProductServiceImpl implements ProductService {

	@Autowired
	ProductMapper productMapper;

	@Override
	public boolean insert(Product product) {
		return productMapper.insert(product);
	}

	@Override
	public Product selectAll() {
		return productMapper.selectAll();
	}

	@Override
	public Product update(Product product) {
		return productMapper.update(product);
	}
}
